<?php

namespace Syrius\Exception;

/**
 * @package Exception
 * @author <domenico.biancardi@gmail.com>
 * Errore generico di una query
 */ class Query extends \Exception {
	public function __construct($driver) {
		$this->_driver = $driver;
	}

	public function __toString() {
		return $this->_driver->error . " " . $this->_driver->errno;
	}

}

?>
